<div id="form"></div>
<script>


var frm=$("#form").ajajform({
	header: "<{>!{{mconfig.label}}<}>",
	submit: {
		url: '<{>action<}>',
		value: "<{>!Save<}>",
		ajaj: true,
		click: function() { frm.ajajform("setSubmitParam","mode","save"); return 1; },
		params: {mode: "save",id: '<{>fields.id<}>',ajaj: 1},
	},
	footerButtons: [
		{value: "<{>!Save and continue<}>", click: function() { frm.ajajform("setSubmitParam","mode","save_only");frm.ajajform("submitClicked"); } }
	]
});
ajajform_add_inputs(frm,{{JSON:inputs}});
<{>foreach l10n in l10n_all<}>
ajajform_add_inputs(frm,{{JSON:inputs_l10n}});
<{>/foreach<}>
</script>
<{>helper_footer<}>

